package com.cloud.product.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCode {

    SUCCESS(200, "SUCCESS"),
    ERROR(500, "ERROR"),
    NEED_LOGIN(403, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(400, "ILLEGAL_ARGUMENT"),
    PRODUCT_NOT_EXIST(400,"商品不存在"),
    PRODUCT_STOCK_ERROR(500,"库存有误"),
    ;

    private Integer code;
    private String desc;

}
